package com.qf.mybatis.dao;

import com.qf.mybatis.entity.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface UserDao {

    public User getUserById(Integer id);

    public User getUserByIdAndPwd(@Param("id") Integer id , @Param("pwd") String password);

    public User selectUserByIdAndPwd_map(Map map);

    public User selectUserByUserInfo(User user);

    public List<User> selectUsersByName(@Param("name") String name);

    public Integer deletUserByid(@Param("id") Integer id);

    public Integer upDateUser(User user);

    public Integer insertUser(User user);

    //选择没备选的同学





}
